package com.studentmanage.framework.domain.base.response;


import com.studentmanage.framework.domain.common.response.ResultCode;

public enum CollegeCode implements ResultCode {
    ADD_FAIL(false,40001,"操作失败！已存在该学院"),
    COLLEGEISEMPTY(false,40003,"操作失败！不存在该学院"),
    ADD_NULL(false,40004,"操作失败！对象为空或者学院id为空"),
    SPECIALISEXIST(false,40005,"操作失败！已存在该专业"),
    ISNULL(false,40002,"操作失败！学院名称不能为空");

    //操作是否成功
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;
    private CollegeCode(boolean success, int code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public boolean success() {
        return success;
    }
    public int code() {
        return code;
    }
    public String message() {
        return message;
    }
}
